package com.dongdongshop.service;

import com.dongdongshop.vo.CartVO;

import java.util.List;

public interface CartService {
    List<CartVO> addCard(List<CartVO> cartlist, Long skuId, Integer num);

    //从redis里面获取购物车数据
    List<CartVO> getCartredis(Long id);

    //保存到redis
    void addCartredis(Long id, List<CartVO> cartlist);

    //合并cookie与redis购物车
    List<CartVO> mergeCartlist(List<CartVO> cart, List<CartVO> cartredis);
}
